Cisco Packet Tracer Extensions API 8.1.0
API for communication between Cisco Packet Tracer application and its extension applications and modules.
Public Member Functions | List of all members
L2NatProcess Class Reference

L2NatProcess is the process that handles Nat for asa. More...

Inheritance diagram for L2NatProcess:
Process

Public Member Functions

vector< string > getInstanceNamesList ()
 Returns the instance names list. More...
 
L2NatInstance getNatInstance (string)
 Returns the nat instance. More...
 
bool removeNatInstance (string)
 Removes the nat instance with the given name. More...
 
bool addInstance (string)
 Adds a instance with the given name if no instance with that name already exists. More...
 
int getTotalTranslation ()
 Returns the total translation count. More...
 
int getTotalInstanceAttached ()
 Returns the total instances attached. More...
 
vector< string > getAttachedNatInstanceList ()
 Returns the list of attached nat instances. More...
 
int getTranslatedNatCount ()
 Returns the total translated nat count. More...
 
int getArpFixupCount ()
 Returns the Arp Fixup count. More...
 
int getTotalNatCount ()
 Returns the total nat count. More...
 
- Public Member Functions inherited from Process
Device getOwnerDevice ()
 Returns the device for this process. More...
 

Detailed Description

L2NatProcess is the process that handles Nat for asa.

Member Function Documentation

◆ addInstance()

bool L2NatProcess::addInstance ( string  )

Adds a instance with the given name if no instance with that name already exists.

Parameters
instanceName,nameof the nat instance to add.
Returns
bool, value is true if the instance could be added, false if not.

◆ getArpFixupCount()

int L2NatProcess::getArpFixupCount ( )

Returns the Arp Fixup count.

Returns
int, value is the Arp Fixup count.

◆ getAttachedNatInstanceList()

vector< string > L2NatProcess::getAttachedNatInstanceList ( )

Returns the list of attached nat instances.

Returns
vector<string>, value is the list of attached nat instances.

◆ getInstanceNamesList()

vector< string > L2NatProcess::getInstanceNamesList ( )

Returns the instance names list.

Returns
vector<string>, value is a list of the instance names.

◆ getNatInstance()

L2NatInstance L2NatProcess::getNatInstance ( string  )

Returns the nat instance.

Returns
L2NatInsance, value is the nat instance.

◆ getTotalInstanceAttached()

int L2NatProcess::getTotalInstanceAttached ( )

Returns the total instances attached.

Returns
int, value is the total instances attached to the instance.

◆ getTotalNatCount()

int L2NatProcess::getTotalNatCount ( )

Returns the total nat count.

Returns
int, value is the total nat count.

◆ getTotalTranslation()

int L2NatProcess::getTotalTranslation ( )

Returns the total translation count.

Returns
int, value is the total translation count.

◆ getTranslatedNatCount()

int L2NatProcess::getTranslatedNatCount ( )

Returns the total translated nat count.

Returns
int, value is the total instances attached to the instance.

◆ removeNatInstance()

bool L2NatProcess::removeNatInstance ( string  )

Removes the nat instance with the given name.

Parameters
instanceName,nameof the nat instance to remove.
Returns
bool, value is true if a instance with the given name was removed, false if not.

The documentation for this class was generated from the following file: